package com.test.service.impl;

import com.test.domain.User;
import com.test.mapper.UserMapper;
import com.test.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author Administrator
* @description 针对表【user(用户表)】的数据库操作Service实现
* @createDate 2023-10-16 14:35:20
*/
@Service
public class UserServiceImpl implements UserService{
	
	@Resource
	UserMapper userMapper;
	
	@Override
	public User login(String username, String password) {
		return userMapper.login(username, password);
	}
	
	@Override
	public User selectByUsername(String username) {
		return userMapper.selectByUsername(username);
	}
}




